import pytest

from WebTest.度小满金融测试.function_selenium import Duxiaoma

"""
测试类
"""
class TestDuxiaomam:
    @pytest.mark.login
    def test_login(self):
        driver = Duxiaoma().login('admin', '123456')
        assert driver is not None
    @pytest.mark.add
    def test_add(self):
        result =  Duxiaoma().adduser('admin', '123456', 'lisi', '123456', '张三', '13414244367', 'wewe@qq.com')
        assert result == 1
    @pytest.mark.delete
    def test_delete(self):
        result = Duxiaoma().deleteuser('admin', '123456', 'lisi')
        assert result == 1
    # def Test_update():
